<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\..\FrameXML\UI.xsd">

	<!-- Options panel -->
	<Frame name="EasyMail_OptionsPanel" hidden="false">
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentTitle" text="EASYMAIL_ADDONNAME" inherits="GameFontNormalLarge" justifyH="LEFT" justifyV="TOP">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="16" y="-16"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<CheckButton name="$parentAutoAdd" inherits="InterfaceOptionsBaseCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="-2" y="-16"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parentText" text="EASYMAIL_CONFIG_AUTOADD" inherits="GameFontHighlight">
							<Anchors>
								<Anchor point="LEFT" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="1"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self.tooltipText = EASYMAIL_AUTOADDHELPMSG;
					</OnLoad>
				</Scripts>
			</CheckButton>
			<EditBox name="$parentListLen" autoFocus="false" inherits="InputBoxTemplate">
				<Size>
					<AbsDimension x="52" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentAutoAdd" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="9" y="-23"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parentText" text="" inherits="GameFontHighlight">
							<Anchors>
								<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
									<Offset>
										<AbsDimension x="-4" y="4"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						EasyMail_OptionsPanelListLenText:SetText(format(EASYMAIL_CONFIG_MAXLEN, EasyMail.MinListLen, EasyMail.MaxListLen));
					</OnLoad>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
						GameTooltip:SetText(EASYMAIL_MAXLENHELPMSG, nil, nil, nil, nil, 1);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
				<FontString inherits="ChatFontNormal" bytes="64"/>
			</EditBox>
			<Button name="$parentClear" inherits="UIPanelButtonTemplate" text="EASYMAIL_CONFIG_CLEARLISTBTNTEXT">
				<Size>
					<AbsDimension x="96" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentListLen" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="-7" y="-25"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parentText" text="EASYMAIL_CONFIG_CLEARLIST" inherits="GameFontHighlight">
							<Anchors>
								<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
									<Offset>
										<AbsDimension x="2" y="2"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnClick>
						PlaySound("igMainMenuOptionCheckBoxOn");
						EasyMail.ClearAll = true;
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
						GameTooltip:SetText(EASYMAIL_CLEARHELPMSG, nil, nil, nil, nil, 1);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Button>
			<CheckButton name="$parentFriends" inherits="InterfaceOptionsBaseCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentClear" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="-2" y="-11"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parentText" text="EASYMAIL_CONFIG_FRIENDS" inherits="GameFontHighlight">
							<Anchors>
								<Anchor point="LEFT" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="1"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self.tooltipText = EASYMAIL_FRIENDSHELPMSG;
					</OnLoad>
				</Scripts>
			</CheckButton>
			<CheckButton name="$parentGuild" inherits="InterfaceOptionsBaseCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentFriends" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parentText" text="EASYMAIL_CONFIG_GUILD" inherits="GameFontHighlight">
							<Anchors>
								<Anchor point="LEFT" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="1"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self.tooltipText = EASYMAIL_GUILDHELPMSG;
					</OnLoad>
				</Scripts>
			</CheckButton>
			<CheckButton name="$parentBlizzList" inherits="InterfaceOptionsBaseCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentGuild" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parentText" text="EASYMAIL_CONFIG_BLIZZLIST" inherits="GameFontHighlight">
							<Anchors>
								<Anchor point="LEFT" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="1"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self.tooltipText = EASYMAIL_BLIZZLISTHELPMSG;
					</OnLoad>
				</Scripts>
			</CheckButton>
			<CheckButton name="$parentClickGet" inherits="InterfaceOptionsBaseCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentBlizzList" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parentText" text="EASYMAIL_CONFIG_CLICKGET" inherits="GameFontHighlight">
							<Anchors>
								<Anchor point="LEFT" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="1"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self.tooltipText = EASYMAIL_CLICKGETHELPMSG;
					</OnLoad>
				</Scripts>
			</CheckButton>
			<CheckButton name="$parentClickDel" inherits="InterfaceOptionsBaseCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentClickGet" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parentText" text="EASYMAIL_CONFIG_CLICKDEL" inherits="GameFontHighlight">
							<Anchors>
								<Anchor point="LEFT" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="1"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self.tooltipText = EASYMAIL_CLICKDELHELPMSG;
					</OnLoad>
				</Scripts>
			</CheckButton>
			<CheckButton name="$parentDelPrompt" inherits="InterfaceOptionsBaseCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentClickDel" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parentText" text="EASYMAIL_CONFIG_DELPROMPT" inherits="GameFontHighlight">
							<Anchors>
								<Anchor point="LEFT" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="1"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self.tooltipText = EASYMAIL_DELPROMPTHELPMSG;
					</OnLoad>
				</Scripts>
			</CheckButton>
			<CheckButton name="$parentTextTooltip" inherits="InterfaceOptionsBaseCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentDelPrompt" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parentText" text="EASYMAIL_CONFIG_TOOLTIP" inherits="GameFontHighlight">
							<Anchors>
								<Anchor point="LEFT" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="1"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self.tooltipText = EASYMAIL_TOOLTIPHELPMSG;
					</OnLoad>
				</Scripts>
			</CheckButton>
			<CheckButton name="$parentDelPending" inherits="InterfaceOptionsBaseCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentTextTooltip" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parentText" text="EASYMAIL_CONFIG_DELPENDING" inherits="GameFontHighlight">
							<Anchors>
								<Anchor point="LEFT" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="1"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self.tooltipText = EASYMAIL_DELPENDINGHELPMSG;
					</OnLoad>
				</Scripts>
			</CheckButton>
			<CheckButton name="$parentMoney" inherits="InterfaceOptionsBaseCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentDelPending" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parentText" text="EASYMAIL_CONFIG_MONEY" inherits="GameFontHighlight">
							<Anchors>
								<Anchor point="LEFT" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="1"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self.tooltipText = EASYMAIL_MONEYHELPMSG;
					</OnLoad>
				</Scripts>
			</CheckButton>
			<CheckButton name="$parentTotal" inherits="InterfaceOptionsBaseCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentMoney" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parentText" text="EASYMAIL_CONFIG_TOTAL" inherits="GameFontHighlight">
							<Anchors>
								<Anchor point="LEFT" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="1"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self.tooltipText = EASYMAIL_TOTALHELPMSG;
					</OnLoad>
				</Scripts>
			</CheckButton>
		</Frames>
		<Scripts>
			<OnLoad>
				self.name = EASYMAIL_ADDONNAME;
				self.default = EasyMail.OptionsDefault;
				self.refresh = EasyMail.OptionsRefresh;
				self.okay = EasyMail.OptionsOkay;
			</OnLoad>
		</Scripts>
	</Frame>

</Ui>